#include <iostream>
#include <string>
#include <vector>
using namespace std;

char process(char ch, bool mode) {
	switch (ch)
	{
	case 'a':
		if (mode)
			return 'B';
		else
			return 'Z';
	case 'A':
		if (mode)
			return 'b';
		else
			return 'z';
	case 'Z':
		if (mode)
			return 'a';
		else
			return 'y';
	case 'z':
		if (mode)
			return 'A';
		else
			return 'Y';
	case '0':
		if (mode)
			return '1';
		else
			return '9';
	case '9':
		if (mode)
			return '0';
		else
			return '8';
	default:
		if (!isalnum(ch))
			return ch;
		if (mode)
			ch = ch + 1;
		else
			ch = ch - 1;
		if (isalpha(ch) && isupper(ch))
			ch = tolower(ch);
		else if (isalpha(ch) && iswlower(ch))
			ch = toupper(ch);
		return ch;
	}
}

void encrypt(string &str) {
	string result = "";
	for (char &ch : str) {
		char en = process(ch, true);
		result += en;
	}
	cout << result << endl;
}

void decrypt(string &str) {
	string result = "";
	for (char &ch : str) {
		char de = process(ch, false);
		result += de;
	}
	cout << result << endl;

}

int main() {
	string en, de;
	cin >> en >> de;
	encrypt(en);
	decrypt(de);
	return 0;
}